<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生花名册</title>
    <style>
        table{
            border: 1px solid #008eFF;
            width: 500px;
            border-collapse: collapse;
        }
        th,td{
            border: 1px solid darkslategray;
            text-align: center;
        }

    </style>
    <script>
        let   manArray=[
            {code:"001",name:"张三",money:5000},
            {code:"005",name:"李四",money:9000},
            {code:"004",name:"张军",money:7000},
            {code:"002",name:"李三",money:8000}];
        let man = manArray.find(m => m.name==="张军").money;
        window.onload=function (){
            let butObj = document.getElementById("button");
            butObj.onclick = function (){
                run();
            }
        }
        function run(){
            location.href="https://www.baidu.com/";
        }
    </script>
</head>
<body>

    <div>
        <table>
            <thead><tr><th>学号</th><th>姓名</th><th>年龄</th><th>操作</th></tr></thead>
            <tbody id="data">
                <tr><td>1</td><td>2</td><td>3</td><td>4</td></tr>
            </tbody>
        </table>
    </div>
    <input type="button" value="点击" id="button">
</body>
</html>